<?php $user_id = $_SESSION['user']['user_id'];$group_id = $_SESSION['user']['group_id'];if ($this->template == 'student'): ?>
<ul class="third-menu-ul">
    <li><a href="<?php echo $this->baseUrl ?>/student/add">学生添加</a></li>
    <?php if ($this->id): ?>
        <?php if($this->uid==$user_id||$group_id==5){?><li class="line"></li>
        <li><a href="<?php echo $this->baseUrl ?>/student/edit?student_id=<?php echo $this->id; ?>">编辑学生</a></li><?php }?>
        <li class="line"></li>
        <li><a href="<?php echo $this->baseUrl ?>/student/tag?student_id=<?php echo $this->id; ?>">设置标签</a></li>
    <?php endif; ?>
    <li class="line"></li>
    <li><a href="<?php echo $this->baseUrl ?>/student/list">学生列表</a></li>
</ul>
<?php elseif ($this->template == 'class'): ?>
<ul class="third-menu-ul">
    <li><a href="<?php echo $this->baseUrl ?>/class/add">班级添加</a></li>
    <?php if ($this->id): ?>
        <li class="line"></li>
        <li><a href="<?php echo $this->baseUrl ?>/class/teacher?class_id=<?php echo $this->id; ?>">设置相关教师</a></li>
        <li class="line"></li>
        <li><a href="<?php echo $this->baseUrl ?>/class/student?class_id=<?php echo $this->id; ?>">设置选课学生</a></li>
        <li class="line"></li>
        <li><a href="<?php echo $this->baseUrl ?>/class/mission?class_id=<?php echo $this->id; ?>">设置班级阶段</a></li>
        <li class="line"></li>
        <li><a href="<?php echo $this->baseUrl ?>/class/detail?class_id=<?php echo $this->id; ?>">班级详细页</a></li>
        <?php if($this->uid==$user_id||$group_id==5){?><li class="line"></li>
        <li><a href="<?php echo $this->baseUrl ?>/class/edit?class_id=<?php echo $this->id; ?>">编辑班级</a></li><?php }?>
    <?php endif; ?>
    <li class="line"></li>
    <li><a href="<?php echo $this->baseUrl ?>/class/list">班级列表</a></li>
</ul>
<?php elseif ($this->template == 'course' || $this->template == 'product'): ?>
<ul class="third-menu-ul">
    <li><a href="<?php echo $this->baseUrl ?>/course/add">课程添加</a></li>
    <?php if ($this->id): ?>
    	<li class="line"></li>
    	<li><a href="<?php echo $this->baseUrl ?>/course/file?course_id=<?php echo $this->id; ?>">课程文件</a></li>
        <li class="line"></li>
    	<li><a href="<?php echo $this->baseUrl ?>/course/case?course_id=<?php echo $this->id; ?>">参考案例</a></li> 
        <li class="line"></li>
    	<li><a href="<?php echo $this->baseUrl ?>/course/detail?course_id=<?php echo $this->id; ?>">课程详细页</a></li>     
    <?php endif; ?>
    <li class="line"></li>
    <li><a href="<?php echo $this->baseUrl ?>/course/list">课程列表</a></li>
    <li class="line"></li>
    <li><a href="<?php echo $this->baseUrl ?>/product/add">教学产品添加</a></li>
    <li class="line"></li>
    <li><a href="<?php echo $this->baseUrl ?>/product/list">教学产品列表</a></li>
</ul>
<?php elseif ($this->template == 'teacher' || $this->template == 'department'): ?>
<ul class="third-menu-ul">
    <li><a href="<?php echo $this->baseUrl ?>/teacher/add">教师添加</a></li>
    <?php if ($this->id): ?>
    	<?php if($this->uid==$user_id||$group_id==5){?><li class="line"></li>
    	<li><a href="<?php echo $this->baseUrl ?>/teacher/edit?teacher_id=<?php echo $this->id; ?>">编辑教师</a></li><?php }?>
        <li class="line"></li>
    	<li><a href="<?php echo $this->baseUrl ?>/teacher/detail?teacher_id=<?php echo $this->id; ?>">教师详情</a></li>
        <li class="line"></li>
    	<li><a href="<?php echo $this->baseUrl ?>/teacher/tag?teacher_id=<?php echo $this->id; ?>">设置标签</a></li>    
    <?php endif; ?>
    <li class="line"></li>
    <li><a href="<?php echo $this->baseUrl ?>/teacher/list">教师列表</a></li>
    <li class="line"></li>
    <li><a href="<?php echo $this->baseUrl ?>/department/add">专业添加</a></li>
    <li class="line"></li>
    <li><a href="<?php echo $this->baseUrl ?>/department/list">专业列表</a></li>
</ul>
<?php elseif ($this->template == 'project'): ?>
<ul class="third-menu-ul">
    <li><a href="<?php echo $this->baseUrl ?>/project/add">项目添加</a></li>
    <?php if ($this->id): ?>
    	<li class="line"></li>
    	<li><a href="<?php echo $this->baseUrl ?>/project/file?project_id=<?php echo $this->id; ?>">项目文件</a></li>
        <li class="line"></li>
    	<li><a href="<?php echo $this->baseUrl ?>/project/case?project_id=<?php echo $this->id; ?>">参考案例</a></li>
        <li class="line"></li>
    	<li><a href="<?php echo $this->baseUrl ?>/project/tag?project_id=<?php echo $this->id; ?>">相关标签</a></li>
        <li class="line"></li>
        <li><a href="<?php echo $this->baseUrl ?>/project/detail?project_id=<?php echo $this->id; ?>">项目详细页</a></li>
        <?php if($this->uid==$user_id||$group_id==5){?><li class="line"></li>
        <li><a href="<?php echo $this->baseUrl ?>/project/edit?project_id=<?php echo $this->id; ?>">编辑项目</a></li><?php }?>
    <?php endif; ?>
    <li class="line"></li>
    <li><a href="<?php echo $this->baseUrl ?>/project/list">项目列表</a></li>
</ul>
<?php elseif ($this->template == 'company'): ?>
<ul class="third-menu-ul">
    <li><a href="<?php echo $this->baseUrl ?>/company/add">客户添加</a></li>
    <?php if ($this->id): ?>
    	<?php if($this->uid==$user_id||$group_id==5){?><li class="line"></li>
    	<li><a href="<?php echo $this->baseUrl ?>/company/edit?company_id=<?php echo $this->id; ?>">编辑客户</a></li><?php }?>
    <?php endif; ?>
    <li class="line"></li>
    <li><a href="<?php echo $this->baseUrl ?>/company/list">客户列表</a></li>
</ul>
<?php elseif ($this->template == 'tag' || $this->template == 'tree'): ?>
<ul class="third-menu-ul">
    <li><a href="<?php echo $this->baseUrl ?>/tag/add">标签添加</a></li>
    <li class="line"></li>
    <li><a href="<?php echo $this->baseUrl ?>/tag/list">标签列表</a></li>
    <li class="line"></li>
    <li><a href="<?php echo $this->baseUrl ?>/tree/add">标签树添加</a></li>
    <li class="line"></li>
    <li><a href="<?php echo $this->baseUrl ?>/tree/manage?tree_id=1">标签树管理</a></li>
    <li class="line"></li>
    <li><a href="<?php echo $this->baseUrl ?>/tree/list">标签树列表</a></li>
</ul>
<?php elseif ($this->type == 'group'): ?>
<ul class="third-menu-ul">
    <li><a href="<?php echo $this->baseUrl ?>/group/add">添加用户分组</a></li>
    <li class="line"></li>
    <li><a href="<?php echo $this->baseUrl ?>/group/list">用户分组列表</a></li>
</ul>
<?php elseif ($this->type == 'user'): ?>
<ul class="third-menu-ul">
    <li><a href="<?php echo $this->baseUrl ?>/user/add">添加用户</a></li>
    <li class="line"></li>
    <li><a href="<?php echo $this->baseUrl ?>/user/list">用户列表</a></li>
</ul>
<?php endif; ?>